#include "cgic.h"

int cgiMain() {
    char nameres[128];
    char ageres[128];
    cgiFormString("name",nameres,128);
    cgiFormString("age",ageres,128);
    cgiHeaderContentType("text/html");
    fprintf(cgiOut, "<HTML><HEAD> <meta charset=\"UTF-8\">\n");
	fprintf(cgiOut, "<TITLE>cgic test</TITLE></HEAD>\n");
	fprintf(cgiOut, "<BODY><H1>操作成功</H1>\n");
    fprintf(cgiOut, "<BODY><H3>请求数据：name=%s,age=%s</H1>\n",nameres,ageres);
    fprintf(cgiOut, "</BODY></HTML>\n");
    return 0;
}